#include <stdio.h>
struct student{
    char name[20];
    int score;
};
int main()
{
	int i=0,max=0;
	struct student stu[10];
	for(i=0;i<5;i++)
	{
	scanf("%s %d\n",&stu[i].name,&stu[i].score);
    }
    for(i=0;i<5;i++)
    {
    	if(stu[i].score>stu[max].score)
    	max=i;
	}
    printf("name = %s, score = %.1f",stu[max].name,(double)stu[max].score);
}

